package com.baizhi.action;

import com.baizhi.entity.Page;
import com.baizhi.service.PageService;
import com.baizhi.service.impl.PageServiceImpl;

public class PageAction {
	private Page page;
	private PageService ps=new PageServiceImpl();
	public String add(){
		ps.insert(page);
		return "toDesign";
	}
	public Page getPage() {
		return page;
	}
	public void setPage(Page page) {
		this.page = page;
	}
	public PageService getPs() {
		return ps;
	}
	public void setPs(PageService ps) {
		this.ps = ps;
	}
}
